//
//  EPOSCcCouponCardInfo.m
//  BCGenieEffect
//
//  Created by Ios Entity Generator on 2014-02-24 18:41:12
//  Copyright (c) 2014年 Bartosz Ciechanowski. All rights reserved.
//

#import "EPOSCcCouponCardInfo.h"

@implementation EPOSCcCouponCardInfo

+(id) getEPOSCcCouponCardInfoFromDictionary :(NSDictionary *) dic {
    EPOSCcCouponCardInfo * ccCouponCardInfo = [[EPOSCcCouponCardInfo alloc]init] ;
    ccCouponCardInfo.LAST_MODIFIED_DATE = [dic objectForKey:@"LAST_MODIFIED_DATE"];
    ccCouponCardInfo.CC_CUST_ID = [dic objectForKey:@"CC_CUST_ID"];
    ccCouponCardInfo.EntityState = [dic objectForKey:@"EntityState"];
    ccCouponCardInfo.END_DATE = [dic objectForKey:@"END_DATE"];
    ccCouponCardInfo.CSPT_ADD_VAL = [dic objectForKey:@"CSPT_ADD_VAL"];
    ccCouponCardInfo.BEGIN_DATE = [dic objectForKey:@"BEGIN_DATE"];
    ccCouponCardInfo.COUPON_CARD_NUM = [dic objectForKey:@"COUPON_CARD_NUM"];
    ccCouponCardInfo.Selected = [dic objectForKey:@"Selected"];
    ccCouponCardInfo.SHOP_ID = [dic objectForKey:@"SHOP_ID"];
    ccCouponCardInfo.STATUS = [dic objectForKey:@"STATUS"];
    ccCouponCardInfo.BALANCE_VAL = [dic objectForKey:@"BALANCE_VAL"];
    ccCouponCardInfo.TRAN_DATE = [dic objectForKey:@"TRAN_DATE"];
    ccCouponCardInfo.USER_CARD_NUM = [dic objectForKey:@"USER_CARD_NUM"];
    ccCouponCardInfo.DISP_NAME = [dic objectForKey:@"DISP_NAME"];
    ccCouponCardInfo.CUST_NUM = [dic objectForKey:@"CUST_NUM"];
    ccCouponCardInfo.COUPON_CARD_TYPE = [dic objectForKey:@"COUPON_CARD_TYPE"];
    ccCouponCardInfo.LAST_TRAN_VAL = [dic objectForKey:@"LAST_TRAN_VAL"];
    ccCouponCardInfo.RLN_NUM = [dic objectForKey:@"RLN_NUM"];
    ccCouponCardInfo.ID = [dic objectForKey:@"ID"];
    ccCouponCardInfo.INIT_VAL = [dic objectForKey:@"INIT_VAL"];
    ccCouponCardInfo.TRAN_VAL = [dic objectForKey:@"TRAN_VAL"];
    ccCouponCardInfo.LAST_MODIFIED_USER = [dic objectForKey:@"LAST_MODIFIED_USER"];
    return ccCouponCardInfo ;
}

+(NSMutableDictionary *) getDictionaryFromEPOSCcCouponCardInfo :(EPOSCcCouponCardInfo* ) ccCouponCardInfo {
    NSMutableDictionary * dic = [[NSMutableDictionary alloc]init] ;
    if (ccCouponCardInfo.LAST_MODIFIED_DATE != nil) {
         [dic setObject:ccCouponCardInfo.LAST_MODIFIED_DATE forKey:@"LAST_MODIFIED_DATE"];
    }
    if (ccCouponCardInfo.CC_CUST_ID != nil) {
        [dic setObject:ccCouponCardInfo.CC_CUST_ID forKey:@"CC_CUST_ID"];
    }
    if (ccCouponCardInfo.EntityState != nil) {
        [dic setObject:ccCouponCardInfo.EntityState forKey:@"EntityState"];
    }
    if (ccCouponCardInfo.END_DATE != nil) {
        [dic setObject:ccCouponCardInfo.END_DATE forKey:@"END_DATE"];
    }
    if (ccCouponCardInfo.CSPT_ADD_VAL != nil) {
        [dic setObject:ccCouponCardInfo.CSPT_ADD_VAL forKey:@"CSPT_ADD_VAL"];
    }
    if (ccCouponCardInfo.BEGIN_DATE != nil) {
        [dic setObject:ccCouponCardInfo.BEGIN_DATE forKey:@"BEGIN_DATE"];
    }

  
  
    if (ccCouponCardInfo.COUPON_CARD_NUM != nil) {
        [dic setObject:ccCouponCardInfo.COUPON_CARD_NUM forKey:@"COUPON_CARD_NUM"];
    }
    if (ccCouponCardInfo.Selected != nil) {
        [dic setObject:ccCouponCardInfo.Selected forKey:@"Selected"];
    }
    if (ccCouponCardInfo.SHOP_ID != nil) {
        [dic setObject:ccCouponCardInfo.SHOP_ID forKey:@"SHOP_ID"];
    }
    if (ccCouponCardInfo.STATUS != nil) {
        [dic setObject:ccCouponCardInfo.STATUS forKey:@"STATUS"];
    }
    

    
    if (ccCouponCardInfo.BALANCE_VAL != nil) {
        [dic setObject:ccCouponCardInfo.BALANCE_VAL forKey:@"BALANCE_VAL"];
    }
    
    if (ccCouponCardInfo.TRAN_DATE != nil) {
        [dic setObject:ccCouponCardInfo.TRAN_DATE forKey:@"TRAN_DATE"];
    }
    if (ccCouponCardInfo.USER_CARD_NUM != nil) {
        [dic setObject:ccCouponCardInfo.USER_CARD_NUM forKey:@"USER_CARD_NUM"];
    }
    if (ccCouponCardInfo.DISP_NAME != nil) {
        [dic setObject:ccCouponCardInfo.DISP_NAME forKey:@"DISP_NAME"];
    }
    if (ccCouponCardInfo.CUST_NUM != nil) {
        [dic setObject:ccCouponCardInfo.CUST_NUM forKey:@"CUST_NUM"];
    }
    
  
    
    if (ccCouponCardInfo.COUPON_CARD_TYPE != nil) {
        [dic setObject:ccCouponCardInfo.COUPON_CARD_TYPE forKey:@"COUPON_CARD_TYPE"];
    }
    
    if (ccCouponCardInfo.LAST_TRAN_VAL != nil) {
        [dic setObject:ccCouponCardInfo.LAST_TRAN_VAL forKey:@"LAST_TRAN_VAL"];
    }
    if (ccCouponCardInfo.RLN_NUM != nil) {
        [dic setObject:ccCouponCardInfo.RLN_NUM forKey:@"RLN_NUM"];
    }
    if (ccCouponCardInfo.ID != nil) {
        [dic setObject:ccCouponCardInfo.ID forKey:@"ID"];
    }
    if (ccCouponCardInfo.INIT_VAL != nil) {
        [dic setObject:ccCouponCardInfo.INIT_VAL forKey:@"INIT_VAL"];
    }
    
    
 
    
    if (ccCouponCardInfo.TRAN_VAL != nil) {
        [dic setObject:ccCouponCardInfo.TRAN_VAL forKey:@"TRAN_VAL"];
    }
    if (ccCouponCardInfo.LAST_MODIFIED_USER != nil) {
        [dic setObject:ccCouponCardInfo.LAST_MODIFIED_USER forKey:@"LAST_MODIFIED_USER"];
    }
    
    
    return dic ;
}

@end